<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

<script src="../js/vue.js"></script>
<div id="app">
  <cpp v-slot:left><button>标题</button></cpp>

</div>

<template id="cpp">
  <div>
    <slot name="left">左边</slot>
    <slot name="center">中间</slot>
    <slot name="right">右边</slot>
  </div>

</template>
<script>
  const app = new Vue({
    el:'#app',
    data:{
      message:"第一次，系统的学VUE"
    },
    components:{
      cpp:{
        template:`#cpp`
      }
    }
  })
</script>
</body>
</html>